package com.lc.feign.hystrix;

import com.lc.feign.CustomerFeign;
import org.springframework.stereotype.Component;

/**
 * Author:LiChuang
 * Date: 2022/8/1 10:22
 */
@Component
public class CustomerFeignHystrix implements CustomerFeign {

    /*
    当调用的提供者服务provider-service宕机时，会自动调用备用服务；
    当provider-service再次上线后，会再次调用相关服务。
     */
    @Override
    public String provider1() {
        return "provider-service备用服务";
    }
}
